package com.sc.nft.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sc.nft.enums.OrderStatusEnum;
import com.sc.nft.enums.PayMethodEnum;
import com.sc.nft.sup.SuperEntity;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 集售订单表(sc_collective_order)实体类
 *
 * @author zxy
 * @since 2024-09-18 01:01:58
 * @description 由 Mybatisplus Code Generator 创建
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sc_collective_order")
public class CollectiveOrder extends SuperEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 集售挂单Id
     */
    private Long collectiveSalesId;
    /**
     * 用户藏品Id
     */
    private Long userCollectionId;
    /**
     * 藏品Id
     */
    private Long collectionId;
    /**
     * 藏品名称
     */
    private String collectionName;
    /**
     * 藏品缩略图
     */
    private String creationContent;
    /**
     * 编号
     */
    private Integer numbering;

    /**
     * 购买价格
     */
    private BigDecimal buyPrice;
    /**
     * 订单号
     */
    private String orderNo;
    /**
     * 下单时间
     */
    private Date orderTime;
    /**
     * 支付时间
     */
    private Date payTime;
    /**
     * 关闭时间
     */
    private Date closeTime;
    /**
     * 手续费
     */
    private BigDecimal charge;
    /**
     * gas费
     */
    private BigDecimal gas;
    /**
     * 实际收到金额
     */
    private BigDecimal realReceiveAmount;
    /**
     * 订单状态
     */
    private OrderStatusEnum status;
    /**
     * 购买用户id
     */
    private Long buyUserId;
    /**
     * 卖出用户id
     */
    private Long salesUserId;
    /**
     * 是否结算
     */
    private Boolean settleFlag;

    /**
     * @see PayMethodEnum
     */
    @ApiModelProperty("收款方式")
    private PayMethodEnum receiveType;

}